﻿@model PYS.Models.RegisterModel

@{
    ViewBag.Title = "Register";
}

<h2>Cont nou</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div class="paddingStyle">
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "Inregistrearea noului cont nu s-a realizat. Corectati erorile si incercati din nou")
    <div>
        <fieldset style="width:100%">
            <legend>Date personale</legend>

            <div class="editor-label">
               @Html.LabelFor(m => m.lastName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.lastName)
                @Html.ValidationMessageFor(m => m.lastName)
            </div>

            <div class="editor-label">
               @Html.LabelFor(m => m.firstName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.firstName)
                @Html.ValidationMessageFor(m => m.firstName)
            </div>

            <div class="editor-label">
               @Html.LabelFor(m => m.Email)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </div>

           

            <div class="editor-label">
                @Html.LabelFor(m => m.cnp)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.cnp)
                @Html.ValidationMessageFor(m => m.cnp)
            </div>      

            <p>
                <input type="submit" value="Inregistreaza" class="account"/>
            </p>
        </fieldset>

        
    </div>
}

    <div class="outSideFieldset">
        <a href="LogOn"><input type="button" class="formsButton" value="Inapoi la Log In" /></a>
    </div>
</div>